package com.bw.module_communication

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.hyphenate.easeui.modules.chat.EaseChatFragment
import com.hyphenate.easeui.widget.EaseTitleBar
/**
 * 工单-智慧园区-即时通讯
 */

class ChatActivity : AppCompatActivity() {
    private var chatFragment: EaseChatFragment? = null
    override fun onCreate(arg0: Bundle?) {
        super.onCreate(arg0)
        setContentView(R.layout.activity_chat)
        //use EaseChatFratFragment
        chatFragment = EaseChatFragment()
        //pass parameters to chat fragment
        chatFragment!!.arguments = intent.extras
        supportFragmentManager.beginTransaction().add(R.id.container, chatFragment!!).commit()

        findViewById<EaseTitleBar>(R.id.title_bar).setLeftLayoutClickListener {
            finish()
        }
    }
}